from django.contrib import admin
from django.views.static import serve
from django.conf import settings
from django.urls import path,re_path

from yxb import index, mysql

urlpatterns = [
    path('', index.index),
    path('admin/', admin.site.urls),
    path('mysql/', mysql.mysql_connect_test),
    path('ajax/test/', index.ajax_post_test),
    path('name/<str:aaa>/', index.get_aaa),

    re_path(r'^static/(?P<path>.*)$',serve,{
        'document_root':settings.STATIC_ROOT
    })

]
